﻿package mortal.game.view.mainUI.smallMap.view.typeIconDataParser
{
    import Message.Public.*;
    import flash.geom.*;
    import mortal.game.resource.*;
    import mortal.game.resource.info.*;
    import mortal.game.scene3D.map3D.util.*;
    import mortal.game.view.mainUI.smallMap.view.data.*;

    public class SmallMap_BattleFiledParser extends Object implements ISmallMapShortMapEntityParser
    {
        public static var instance:SmallMap_BattleFiledParser = new SmallMap_BattleFiledParser;

        public function SmallMap_BattleFiledParser()
        {
            return;
        }// end function

        public function chooseIcon(param1:SShortMapEntity, param2:Array) : void
        {
            var _loc_5:DefInfo = null;
            var _loc_3:* = new SmallMapTypeIconData();
            var _loc_4:* = GameMapUtil.getPixelPoint(param1.point.x, param1.point.y);
            _loc_3.x = _loc_4.x;
            _loc_3.y = _loc_4.y;
            _loc_3.name = "";
            _loc_3.tips = "";
            if (param1.entityId.type == EEntityType._EEntityTypeBoss)
            {
                _loc_5 = GameDefConfig.instance.getBattlefieldResetForceInfo(param1.force);
                if (_loc_5 && (!param1.ownerEntityId || param1.ownerEntityId.id == 0))
                {
                    _loc_3.iconName = _loc_5.value;
                    param2.push(_loc_3);
                }
            }
            return;
        }// end function

    }
}
